<table width='100%' height='100%'>
				<form method='POST' action='index.php?views=registration'>
				<? $today = date('Y-m-d');?>
				<tr><td align=center>
				<table>
				<tr><h2 align=center>Form registration</h2><td>
				<table>
				<tr><td>Login:</td><td><input type='text'
			        name='login' size='15' maxlength='50'></td></tr>
				<tr><td>Password:</td><td><input
			        type='password' name='password[]' size='15' maxlength='50'></td></tr>
			    <tr><td>Repeat password:</td><td><input
			        type='password' name='password[]' size='15' maxlength='50'></td></tr>
			    <tr><td>Name:</td><td><input
			        type='text' name='name' size='15' maxlength='50'></td></tr>
			    <tr><td>Sex:</td><td>
			    	<input type='radio' name='sex' value='0' checked>M<br/>
			        <input type='radio' name='sex' value='1'>F</td></tr>
			    <tr><td align="right">Date of Birth:</td><td>
			    
			    <? 
	
$months = array("January","February","March","April","May","June","July","August","Septembet","October","November","December");
echo "<select name=month>";
$x = 1;
while($x < sizeof($months)+1)
{
	print "<option value=".$x.">".$months[$x-1]."</option>";
	$x++;
}
echo "</select>";		    
			    
echo "<select name=day>";
$day = 1;
while ($day <= 31)
{
	echo "<option value=$day>$day</option>"; $day++;
}
echo "</select>";
echo "<select name=year>
";
$year = date ("Y");
$endyear = $year - 122;
while($year >= $endyear)
{
	echo "<option value=$year>$year</option>";$year--;
}
echo "</select>";
?></td></tr>



				</table>
				</td></tr>
				<tr><td align=center><input type='submit' name='ok'
			        value='Registration'><br/><i>* must fill in all fields</i></td></tr>
				</table>
				</td></tr>
				</form>
				</table>